﻿using System;
using System.ComponentModel;

namespace EpiNEXT.Core
{
    /// <summary>
    /// An enum used to represent the valid modes by which a database can be checked for updates
    /// </summary>
    public enum DataDriverUpdateMode
    {
        /// <summary>
        /// Specifies that the database should not be checked for updates
        /// </summary>
        [Description("None")]
        None,
        /// <summary>
        /// Specifies that the database should be checked on a timer (e.g. every n seconds the database will be polled)
        /// </summary>
        [Description("Timer")]
        Timer,
        /// <summary>
        /// Specifies that a service broker will be used to raise events from the database itself when the data
        /// have changed.
        /// </summary>
        [Description("ServiceBroker")]
        ServiceBroker
    }
}
